package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;
import com.lanchetech.entity.Mailbox;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface MailboxMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Mailbox record);

    int insertSelective(Mailbox record);

    Mailbox selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Mailbox record);

    int updateByPrimaryKey(Mailbox record);

    Integer getUnreadNumber(@Param("type") Byte type, @Param("date") Date date);

    List<Mailbox> findAllPage(PageReq req);
}